#include "../2_source/server.hpp"


int main()
{
    Socket cli_sock;
    cli_sock.CreateClient(8080,"127.0.0.1");

    for(int i = 0; i < 5; ++i)
    {
        string str = "hello!";
        cli_sock.Send(str.c_str(), str.size());
        char buff[1024] = {0};
        cli_sock.Recv(buff, sizeof(buff)-1);

        DBG_LOG("%s", buff);

        sleep(1);
    }
    while(true) sleep(1);

    cli_sock.Close();
    return 0;
}